package com.hgw.Demo03_DecoratorPattern.examples;

/**
 * Data time:2021/12/14 18:50
 * StudentID:2019112118
 * Author:hgw
 * Description: 黑色边框装饰类，充当具体装饰类
 */
public class BlackBorderDecorator extends ComponentDecorator{
    public BlackBorderDecorator(Component component) {
        super(component);
    }

    @Override
    public void display() {
        this.setBlackBorder();
        super.display();
    }

    public void setBlackBorder() {
        System.out.println("为构建增加黑色边框！");
    }
}
